package com.lanou3g.demo.base.service;

import com.lanou3g.demo.entity.ModuleInfo;
import com.lanou3g.demo.mapper.IndexMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IndexService implements IIndexService {
    @Autowired
    private IndexMapper indexMapper;
    @Override
    public List<ModuleInfo> moduleList(Long id) {
        List<ModuleInfo> infoList = indexMapper.findModuleByRole(id);
        return infoList;
    }
}
